﻿using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Data;

namespace WhaleAccount.Helpers;
public class BoolToListViewSelectionModeConverter : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, string language)
    {
        var isEditable = (bool)value;
        return isEditable ? ListViewSelectionMode.Multiple : (object)ListViewSelectionMode.None;
    }
    public object ConvertBack(object value, Type targetType, object parameter, string language) => throw new NotImplementedException();
}
